/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 客流同步 GET /passengerFlow/detailPull */
export async function passengerFlowDetailPullUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.passengerFlowDetailPullUsingGetParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/passengerFlow/detailPull', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 客流精准数据分页查询 POST /passengerFlow/pageDetail */
export async function passengerFlowPageDetailUsingPost({
  body,
  options,
}: {
  body: API.PassengerFlowDetailQueryBo;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVoPassengerFlowDetailVo>(
    '/passengerFlow/pageDetail',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 客流配置分页查询 POST /passengerFlow/pageRegion */
export async function passengerFlowPageRegionUsingPost({
  body,
  options,
}: {
  body: API.PassengerFlowRegionQueryBo;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVoPassengerFlowRegionVo>(
    '/passengerFlow/pageRegion',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 区域同步 GET /passengerFlow/regionConfigPull */
export async function passengerFlowRegionConfigPullUsingGet({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/passengerFlow/regionConfigPull', {
    method: 'GET',
    ...(options || {}),
  });
}

/** 视频预览对讲 POST /passengerFlow/startVideo */
export async function passengerFlowStartVideoUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.passengerFlowStartVideoUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingDahuaStartVideoVo>('/passengerFlow/startVideo', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 客流统计数据 x:小时，y：数量，类型：出、入、经过 POST /passengerFlow/statistics/hourNumOnTypeByDate */
export async function passengerFlowStatisticsHourNumOnTypeByDateUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.passengerFlowStatisticsHourNumOnTypeByDateUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingListHourNumOnTypeVO>(
    '/passengerFlow/statistics/hourNumOnTypeByDate',
    {
      method: 'POST',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
